<!DOCTYPE html>
<html lang="en">
  <head>
    
<meta charset="UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"/>


<meta http-equiv="Cache-Control" content="no-transform" />
<meta http-equiv="Cache-Control" content="no-siteapp" />









  <link rel="alternate" href="/atom.xml" title="imIce">




  <link rel="shortcut icon" type="image/x-icon" href="/favicon.ico?v=2.4.x" />



<link rel="canonical" href="http://yoursite.com/"/>


<meta property="og:type" content="website">
<meta property="og:title" content="imIce">
<meta property="og:url" content="http://yoursite.com/index.html">
<meta property="og:site_name" content="imIce">
<meta property="og:locale" content="en">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="imIce">


<link rel="stylesheet" type="text/css" href="/css/style.css?v=2.4.x" />



  <link rel="stylesheet" type="text/css" href="/lib/fancybox/jquery.fancybox.css" />





<script>
  var CONFIG = {
    search: true,
    searchPath: "/search.xml",
    fancybox: true,
    toc: true,
  }
</script>




  



    <title> imIce </title>
  </head>

  <body><div id="mobile-navbar" class="mobile-navbar">
  <div class="mobile-header-logo">
    <a href="/." class="logo">imIce</a>
  </div>
  <div class="mobile-navbar-icon">
    <span></span>
    <span></span>
    <span></span>
  </div>
</div>

<nav id="mobile-menu" class="mobile-menu slideout-menu">
  <ul class="mobile-menu-list">
    
      <a href="/">
        <li class="mobile-menu-item">
          
          
            Home
          
        </li>
      </a>
    
      <a href="/archives/">
        <li class="mobile-menu-item">
          
          
            Archives
          
        </li>
      </a>
    
      <a href="/tags">
        <li class="mobile-menu-item">
          
          
            Tags
          
        </li>
      </a>
    
      <a href="/about">
        <li class="mobile-menu-item">
          
          
            About
          
        </li>
      </a>
    
  </ul>
</nav>

    <div class="container" id="mobile-panel">
      <header id="header" class="header"><div class="logo-wrapper">
  <a href="/." class="logo">imIce</a>
</div>

<nav class="site-navbar">
  
    <ul id="menu" class="menu">
      
        <li class="menu-item">
          <a class="menu-item-link" href="/">
            
            
              Home
            
          </a>
        </li>
      
        <li class="menu-item">
          <a class="menu-item-link" href="/archives/">
            
            
              Archives
            
          </a>
        </li>
      
        <li class="menu-item">
          <a class="menu-item-link" href="/tags">
            
            
              Tags
            
          </a>
        </li>
      
        <li class="menu-item">
          <a class="menu-item-link" href="/about">
            
            
              About
            
          </a>
        </li>
      
      
        <li class="menu-search">
          <form>
            <i class="iconfont icon-search" id="open-search"></i>
            <input type="text" class="search-input" id="search-input" />
            <i class="iconfont icon-close" id="close-search"></i>
          </form>
        </li>
      
    </ul>
  
</nav>

      </header>

      <main id="main" class="main">
        <div class="content-wrapper">
          <div id="content" class="content">
            
  <section id="posts" class="posts">
    
      
  <article class="post">
    <header class="post-header">
      <h1 class="post-title">
        
          <a class="post-link" href="/2017/09/04/CentOS_jdk1.7/">CentOS安装配置jdk</a>
        
      </h1>

      <div class="post-meta">
        <span class="post-time">
          Sep 4, 2017
        </span>
      </div>
    </header>

    
    

    <div class="post-content">
      
        
        
          
        

        
          <blockquote>
<p>CentOS：6.9 x64<br>jdk：1.7</p>
</blockquote>
<p><strong>查看是否安装有jdk，并删除之前版本</strong><br><figure class="highlight dos"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div></pre></td><td class="code"><pre><div class="line">#查看</div><div class="line">rpm -qa|grep java</div><div class="line">#删除</div><div class="line">rpm -e --nodeps java-XXXX</div></pre></td></tr></table></figure></p>
          <div class="read-more">
            <a href="/2017/09/04/CentOS_jdk1.7/" class="read-more-link">Read more..</a>
          </div>
        
      
    </div>

    

    

  </article>

    
      
  <article class="post">
    <header class="post-header">
      <h1 class="post-title">
        
          <a class="post-link" href="/2017/08/17/slideLoading/">手机端页面下滑异步加载数据</a>
        
      </h1>

      <div class="post-meta">
        <span class="post-time">
          Aug 17, 2017
        </span>
      </div>
    </header>

    
    

    <div class="post-content">
      
        
        
          
        

        
          <p><strong>手机端页面下滑异步加载数据</strong></p>
<blockquote>
<p>需求：手机端滑动异步加载产品数据</p>
</blockquote>
          <div class="read-more">
            <a href="/2017/08/17/slideLoading/" class="read-more-link">Read more..</a>
          </div>
        
      
    </div>

    

    

  </article>

    
      
  <article class="post">
    <header class="post-header">
      <h1 class="post-title">
        
          <a class="post-link" href="/2017/08/17/springMVC-2/">springMVC学习记录（二）基于代码的servlet容器初始化</a>
        
      </h1>

      <div class="post-meta">
        <span class="post-time">
          Aug 17, 2017
        </span>
      </div>
    </header>

    
    

    <div class="post-content">
      
        
        
          
        

        
          <p><strong>springMVC简介</strong></p>
<p>springMVC是围绕一个<code>DispatcherServlet</code>来设计的，这个servlet会把请求分发给各个处理器，并支持可配置的处理器映射、视图渲染、本地化、时区与主题渲染等，支持文件上传。处理器是你的应用中注解了<code>@Controller</code>和<code>@RequestMapping</code>的类和方法，spring为处理器方法提供了多样灵活的配置。spring3.0以后提供了<code>@Controller</code>注解机制，<code>@PathVariable</code>注解以及一些其他的特性，你可以使用它们来进行<code>RESTful</code> web站点和应用的开发。</p>
          <div class="read-more">
            <a href="/2017/08/17/springMVC-2/" class="read-more-link">Read more..</a>
          </div>
        
      
    </div>

    

    

  </article>

    
      
  <article class="post">
    <header class="post-header">
      <h1 class="post-title">
        
          <a class="post-link" href="/2017/08/17/springMVC-1/">springMVC学习记录（一）环境搭建</a>
        
      </h1>

      <div class="post-meta">
        <span class="post-time">
          Aug 17, 2017
        </span>
      </div>
    </header>

    
    

    <div class="post-content">
      
        
        
          
        

        
          <blockquote>
<p>以前没有写博客记录的习惯，发现好多东西写过之后特别容易忘，<br>最近有点时间，重新回顾一下，恩…从springMVC开始</p>
</blockquote>
<hr>
<blockquote>
<p>IDE:：idea16<br>构建工具：maven<br>jdk版本：1.7</p>
</blockquote>
          <div class="read-more">
            <a href="/2017/08/17/springMVC-1/" class="read-more-link">Read more..</a>
          </div>
        
      
    </div>

    

    

  </article>

    
      
  <article class="post">
    <header class="post-header">
      <h1 class="post-title">
        
          <a class="post-link" href="/2017/08/17/zhengze/">正则表达式匹配url</a>
        
      </h1>

      <div class="post-meta">
        <span class="post-time">
          Aug 17, 2017
        </span>
      </div>
    </header>

    
    

    <div class="post-content">
      
        
        
          
        

        
          <p><strong>正则表达式匹配url</strong></p>
<blockquote>
<p>需求：在客户端识别一段文字中的url并加上链接效果</p>
</blockquote>
<figure class="highlight javascript"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div><div class="line">5</div><div class="line">6</div><div class="line">7</div><div class="line">8</div></pre></td><td class="code"><pre><div class="line">&lt;script type=<span class="string">"text/javascript"</span>&gt;</div><div class="line">    <span class="function"><span class="keyword">function</span> <span class="title">replaceReg</span>(<span class="params">reg,str</span>)</span>&#123;</div><div class="line">        <span class="keyword">return</span> str.replace(reg,<span class="function"><span class="keyword">function</span>(<span class="params">m</span>)</span>&#123;<span class="keyword">return</span> <span class="string">'&lt;a href="http://'</span>+m+<span class="string">'" target="_blank"&gt;'</span>+m+<span class="string">'&lt;/a&gt;'</span>;&#125;)</div><div class="line">    &#125;</div><div class="line">    <span class="keyword">var</span> reg = <span class="regexp">/[\w\-]+(\.[\w\-]+)+([\w\-\.,@?^=%&amp;:\/~\+#]*[\w\-\@?^=%&amp;\/~\+#])?/ig</span>;</div><div class="line">    <span class="keyword">var</span> str =<span class="string">'普通ice1025.github.io前缀http://ice1025.github.io带参数https://ice1025.github.io/2017/04/05/categories_%20java/复杂参数https://www.baidu.com/s?ie=utf-8&amp;f=8&amp;rsv_bp=1&amp;tn=baidu&amp;wd=test&amp;oq=ice1025.github.io&amp;rsv_pq=aff940260000ac5b&amp;rsv_t=7296ebK9LCPPnnupMO6dFV7jFM9hTjiVM24P3ETj4%2BH%2F3W%2BPlK0wix6RqS4&amp;rqlang=cn&amp;rsv_enter=1&amp;rsv_sug3=12&amp;rsv_sug1=12&amp;rsv_sug7=100&amp;rsv_sug2=0&amp;inputT=4695&amp;rsv_sug4=4695'</span>;</div><div class="line">    <span class="built_in">document</span>.write(replaceReg(reg,str));</div><div class="line">&lt;<span class="regexp">/script&gt;</span></div></pre></td></tr></table></figure>
          <div class="read-more">
            <a href="/2017/08/17/zhengze/" class="read-more-link">Read more..</a>
          </div>
        
      
    </div>

    

    

  </article>

    
      
  <article class="post">
    <header class="post-header">
      <h1 class="post-title">
        
          <a class="post-link" href="/2017/08/17/elasticsearch_queryDSL/">elasticSearch  Query DSL(Filters)</a>
        
      </h1>

      <div class="post-meta">
        <span class="post-time">
          Aug 17, 2017
        </span>
      </div>
    </header>

    
    

    <div class="post-content">
      
        
        
          
        

        
          <blockquote>
<p>在一篇中我们实现了mysql数据实时同步至elasticSearch，<br>接下来就是利用<code>java API</code>来实现数据查询，使用<code>Filters</code>方式查询<br>注释写的很清楚，包含分页，关键字查询，范围查询等等</p>
</blockquote>
          <div class="read-more">
            <a href="/2017/08/17/elasticsearch_queryDSL/" class="read-more-link">Read more..</a>
          </div>
        
      
    </div>

    

    

  </article>

    
      
  <article class="post">
    <header class="post-header">
      <h1 class="post-title">
        
          <a class="post-link" href="/2017/08/17/mysql_elsticsearch/">利用mysql触发器创建变更表推送数据到elasticsearch</a>
        
      </h1>

      <div class="post-meta">
        <span class="post-time">
          Aug 17, 2017
        </span>
      </div>
    </header>

    
    

    <div class="post-content">
      
        
        
          
        

        
          <p><strong>利用mysql触发器创建变更表推送数据到elasticsearch</strong></p>
<blockquote>
<p>需求：某项业务需要用到模糊查询，数据库用的mysql，<code>%search%</code>类似这样的索引无法生效，导致搜索特别吃力<br>看到了这位老铁的<code>利用mysql触发器创建变更表推送数据到elasticsearch</code><br>原文链接：<a href="http://www.toozy.cn/mysql-trigger-elasticsearch/" target="_blank" rel="external">http://www.toozy.cn/mysql-trigger-elasticsearch/</a><br> 按照这个思路，决定采用elasticsearch来替代mysql提供搜索服务。<br>
          <div class="read-more">
            <a href="/2017/08/17/mysql_elsticsearch/" class="read-more-link">Read more..</a>
          </div>
        
      
    </div>

    

    

  </article>

    
  </section>

  
  <nav class="pagination">
    
    
  </nav>


          </div>
          

        </div>  
      </main>

      <footer id="footer" class="footer">

  <div class="social-links">
    
      
        
          <a href="mailto:ice105ow@qq.com" class="iconfont icon-email" title="email"></a>
        
      
    
      
    
      
    
      
    
      
    
      
    
      
    
      
    
      
    
      
    
      
    
    
    
      <a href="/atom.xml" class="iconfont icon-rss" title="rss"></a>
    
  </div>


<div class="copyright">
  <span class="power-by">
    Powered by <a class="hexo-link" href="https://hexo.io/">Hexo</a>
  </span>
  
  <span class="theme-info">
    Theme - 
    <a class="theme-link" href="https://github.com/ahonn/hexo-theme-even">Even</a>
  </span>

  <span class="copyright-year">
    
    &copy; 
     
      2016 - 
    
    2017

    <span class="heart">
      <i class="iconfont icon-heart"></i>
    </span>
    <span class="author">ice</span>
  </span>
</div>
      </footer>

      <div class="back-to-top" id="back-to-top">
        <i class="iconfont icon-up"></i>
      </div>
    </div>

    


    
  





  
    <script type="text/javascript" src="/lib/jquery/jquery-3.1.1.min.js"></script>
  

  
    <script type="text/javascript" src="/lib/slideout/slideout.js"></script>
  

  
    <script type="text/javascript" src="/lib/fancybox/jquery.fancybox.pack.js"></script>
  


    <script type="text/javascript" src="/js/src/even.js?v=2.4.x"></script>
<script type="text/javascript" src="/js/src/bootstrap.js?v=2.4.x"></script>

    
  <script type="text/html" id="search-result">
    <article class="post">
      <header class="post-header">
        <h1 class="post-title">
          <a href="$url$" class="post-link">
            $title$
          </a>
        </h1>
      </header>
      <div class="post-content">
        $content$
        <div class="read-more">
          <a href="$url$" class="read-more-link">
            Read more..
          </a>
        </div>
      </div>
    </article>
  </script>
  <script type="text/html" id="no-search-result">
    <div class="no-result">
      <h2>No result found!</h2>
    </div>
  </script>
  <script type="text/javascript" src="/js/src/search.js?v=2.4.x"></script>

  </body>
</html>
